package com.deschen.security.core.social.qq.connect;

import com.deschen.security.core.social.qq.api.QQ;
import org.springframework.social.connect.ApiAdapter;
import org.springframework.social.connect.support.OAuth2ConnectionFactory;
import org.springframework.social.oauth2.OAuth2ServiceProvider;

/**
 * @Author deschen
 * @Create 2019/9/2
 * @Description
 * @Since 1.0.0
 */
public class QQConnectionFactory extends OAuth2ConnectionFactory<QQ> {

    /**
     *
     * @param providerId 提供商唯一标识
     * @param appid
     * @param appSercet
     */
    public QQConnectionFactory(String providerId, String appid, String appSercet) {
        super(providerId, new QQServiceProvider(appid, appSercet), new QQAdapter());
    }
}
